package com.dartfar.util;

import org.apache.struts2.ServletActionContext;

/**
 * 路径工具类
 * @author 王琦
 *
 */

public class PathUtil {
	
	/**
	 * 取得项目路径
	 * @return
	 */
	public static String getWebContent(){
		String webContent = ServletActionContext.getServletContext().getRealPath("");
		return webContent;
	}
	
	/**
	 * 取得工作流文件存储路径
	 * @return workflowFilesPath
	 */
	public static String getWorkflowFilesPath(){
		String workflowFilesPath = getWebContent() + "\\WorkflowFiles\\";
		return workflowFilesPath;
	}

}
